import request from "@/utils/request";

export function getIndexData() {
  return request.get({
    url: "/api/Fusion/getIndexData",
  });
}

export function getQrCode() {
  return request.get({
    url: "/api/Fusion/getQrCode",
  });
}
export function getUploadAuth() {
  return request.get({
    url: "/api/Fusion/getUploadAuth",
  });
}
export function getKeywords() {
  return request.get({
    url: "/api/Fusion/getKeywords",
  });
}

export function createPic(data) {
  return request.post(
    {
      url: "/api/Fusion/createPic",
      data,
    },
    {
      showAll: true,
      show: false,
    }
  );
}

export function downloadImg(data) {
  return request.get({
    url: "/api/Fusion/download",
    data,
  });
}
export function printPic(data) {
  return request.get({
    url: "/api/Fusion/printPic",
    data,
  });
}
export function confirmQrCode(data) {
  return request.post(
    {
      url: "/api/Fusion/confirmQrCode",
      data,
    },
    {
      show: false,
    }
  );
}

export function uploadFile(data) {
  return request.uploadFile({
    url: "/api/Fusion/upload",
    ...data,
  });
}
export function jssdkConfig(data) {
  return request.post({
    url: "/api/Postcard/jssdkConfig",
    data,
  });
}
